[INFO] cloning repository https://github.com/jordansexton/obligation-test
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jordansexton/obligation-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjordansexton%2Fobligation-test", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjordansexton%2Fobligation-test'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3e5bf800af75e7d9c175ecb1fcc8e4326163468b
[INFO] testing jordansexton/obligation-test against master#d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d for pr-83796
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjordansexton%2Fobligation-test" "/workspace/builds/worker-14/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/jordansexton/obligation-test on toolchain d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/jordansexton/obligation-test
[INFO] finished tweaking git repo https://github.com/jordansexton/obligation-test
[INFO] tweaked toml for git repo https://github.com/jordansexton/obligation-test written to /workspace/builds/worker-14/source/Cargo.toml
[INFO] crate git repo https://github.com/jordansexton/obligation-test already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5730910eabbf5cc53c68b9bcd55cadfc102c96160d2467a3f60020a2c6153c09
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "5730910eabbf5cc53c68b9bcd55cadfc102c96160d2467a3f60020a2c6153c09", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5730910eabbf5cc53c68b9bcd55cadfc102c96160d2467a3f60020a2c6153c09", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5730910eabbf5cc53c68b9bcd55cadfc102c96160d2467a3f60020a2c6153c09", kill_on_drop: false }`
[INFO] [stdout] 5730910eabbf5cc53c68b9bcd55cadfc102c96160d2467a3f60020a2c6153c09
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] df3041edbc98b6c8e4d335d6c0b1068b04ae72f24b4740096fd284a316ca0561
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "df3041edbc98b6c8e4d335d6c0b1068b04ae72f24b4740096fd284a316ca0561", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling bs58 v0.3.1
[INFO] [stderr]    Compiling obligation-test v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0502]: cannot borrow `self.collateral` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> src/obligation.rs:29:19
[INFO] [stdout]    |
[INFO] [stdout] 24 |         &mut self,
[INFO] [stdout]    |         - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 27 |         if let Some(collateral) = self._find_collateral_mut(deposit_reserve) {
[INFO] [stdout]    |                                   ---- mutable borrow occurs here
[INFO] [stdout] 28 |             Ok(collateral)
[INFO] [stdout]    |             -------------- returning this value requires that `*self` is borrowed for `'1`
[INFO] [stdout] 29 |         } else if self.collateral.len() >= MAX_OBLIGATION_COLLATERAL {
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `self.collateral` as mutable more than once at a time
[INFO] [stdout]   --> src/obligation.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |         &mut self,
[INFO] [stdout]    |         - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 27 |         if let Some(collateral) = self._find_collateral_mut(deposit_reserve) {
[INFO] [stdout]    |                                   ---- first mutable borrow occurs here
[INFO] [stdout] 28 |             Ok(collateral)
[INFO] [stdout]    |             -------------- returning this value requires that `*self` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 33 |             self.collateral.push(collateral);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `self.collateral` as mutable more than once at a time
[INFO] [stdout]   --> src/obligation.rs:34:16
[INFO] [stdout]    |
[INFO] [stdout] 24 |         &mut self,
[INFO] [stdout]    |         - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 27 |         if let Some(collateral) = self._find_collateral_mut(deposit_reserve) {
[INFO] [stdout]    |                                   ---- first mutable borrow occurs here
[INFO] [stdout] 28 |             Ok(collateral)
[INFO] [stdout]    |             -------------- returning this value requires that `*self` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 34 |             Ok(self.collateral.last_mut().unwrap())
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `self.collateral` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> src/obligation_with_lifetime.rs:28:19
[INFO] [stdout]    |
[INFO] [stdout] 23 |         &mut self,
[INFO] [stdout]    |         - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 26 |         if let Some(collateral) = self._find_collateral_mut(deposit_reserve) {
[INFO] [stdout]    |                                   ---- mutable borrow occurs here
[INFO] [stdout] 27 |             Ok(collateral)
[INFO] [stdout]    |             -------------- returning this value requires that `*self` is borrowed for `'1`
[INFO] [stdout] 28 |         } else if self.collateral.len() >= MAX_OBLIGATION_COLLATERAL {
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0716]: temporary value dropped while borrowed
[INFO] [stdout]   --> src/obligation_with_lifetime.rs:31:35
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl<'a> ObligationWithLifetime<'a> {
[INFO] [stdout]    |      -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 31 |             let collateral = &mut ObligationCollateralWithLifetime { deposit_reserve };
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use
[INFO] [stdout] 32 |             self.collateral.push(collateral);
[INFO] [stdout]    |             -------------------------------- argument requires that borrow lasts for `'a`
[INFO] [stdout] ...
[INFO] [stdout] 35 |     }
[INFO] [stdout]    |     - temporary value is freed at the end of this statement
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `self.collateral` as mutable more than once at a time
[INFO] [stdout]   --> src/obligation_with_lifetime.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |         &mut self,
[INFO] [stdout]    |         - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 26 |         if let Some(collateral) = self._find_collateral_mut(deposit_reserve) {
[INFO] [stdout]    |                                   ---- first mutable borrow occurs here
[INFO] [stdout] 27 |             Ok(collateral)
[INFO] [stdout]    |             -------------- returning this value requires that `*self` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 32 |             self.collateral.push(collateral);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*collateral` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/obligation_with_lifetime.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl<'a> ObligationWithLifetime<'a> {
[INFO] [stdout]    |      -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 32 |             self.collateral.push(collateral);
[INFO] [stdout]    |             --------------------------------
[INFO] [stdout]    |             |                    |
[INFO] [stdout]    |             |                    immutable borrow occurs here
[INFO] [stdout]    |             argument requires that `*collateral` is borrowed for `'a`
[INFO] [stdout] 33 |             Ok(collateral)
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `**collateral` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/obligation_with_lifetime.rs:43:29
[INFO] [stdout]    |
[INFO] [stdout] 43 |                 return Some(collateral);
[INFO] [stdout]    |                             ^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `obligation-test`
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] 
[INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0596, E0716.
[INFO] [stdout] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stdout] For more information about an error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "df3041edbc98b6c8e4d335d6c0b1068b04ae72f24b4740096fd284a316ca0561", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "df3041edbc98b6c8e4d335d6c0b1068b04ae72f24b4740096fd284a316ca0561", kill_on_drop: false }`
[INFO] [stdout] df3041edbc98b6c8e4d335d6c0b1068b04ae72f24b4740096fd284a316ca0561
